package com.usian.apis.admin;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

//对外提供服务的暴露接口
@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface AdChannelControllerApi {

    /*
    * 根据名称分页查询
    * */
    @ApiOperation("频道分页管理")
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    /**
     * 根据ID删除
     *
     */
    public ResponseResult deleteById(Integer id);

    /**
     * 添加
     * @param adChannel
     * @return
     */
    public ResponseResult save(AdChannel adChannel);

    /**
     * 修改
     * @param adChannel
     * @return
     */
    public ResponseResult update(AdChannel adChannel);
    ResponseResult findList();
}
